<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="/taglibs.jsp"%>

<s:actionerror />
<s:actionmessage />
<s:fielderror />
<br />
<h1>公司/部门维护
<div class="f-link">
<a href="create.do">新增</a>
<a href="#" onclick="$('#formObj').submit();">搜寻</a>
</div>
</h1>
<div class="data-form">
<s:form action="search.do" method="post" name="formObj" id="formObj">
<table width="100%">
<tr>
	<td width="15%">代码：</td>
	<td width="35%"><s:textfield name="paraKey"/></td>
	<td width="15%">类别：</td>
	<td width="35%"><s:checkboxlist list="typeMenu" name="paraTypes" listKey="key" listValue="value"/></td>
</tr>
<tr>
	<td width="15%">说明：</td>
	<td width="35%"><s:textfield name="paraDesc"/></td>
	<td width="15%"></td>
	<td width="35%"></td>
</tr>
</table>
</s:form>
</div>
<br/><br/>
	<table class="tb-1" width="100%">
		<thead>
			<tr>
				<th>#</th>
				<th>类型</th>
				<th>说明</th>
			</tr>
		</thead>
		<s:if test="objList.size > 0">
		<tbody>
			<c:forEach items="${objList}" var="obj" varStatus="rows_index">
				<tr class="${rows_index.count % 2 == 0 ? 'bg-yl' : ''}">
					<td style="width:10%;"><fmt:formatNumber pattern="0000" value="${rows_index.count + pager.currentPage*20}" /></td>
					<td style="width:20%; text-align:left;"><a href="view.do?paraId=${obj.code}" />${obj.code}</a></td>
					<td style="width:70%; text-align:left;">${obj.description}</td>
				</tr>
			</c:forEach>
		</tbody>
		</s:if>
		<s:else>
			<tbody>
				<tr class="bg-yl"><td colspan="6">查无资料!!</td></tr>
			</tbody>
		</s:else>
	</table>	
	<yaodian100:pageutil link="search.do" pagerObj="${pager}" />
